<div id="tab-system" class="HuiTab">
	<div class="tabBar cl">
		<span onclick="HtmlRender('${BASE}/admin/cms/slide/list')">幻灯片列表</span>
		<span onclick="HtmlRender('${BASE}/admin/cms/slide/add')">添加幻灯片</span>
		<span onclick="HtmlRender('${BASE}/admin/cms/slide/listCat')">幻灯片分类列表</span>
		<span onclick="HtmlRender('${BASE}/admin/cms/slide/addCat')">添加幻灯片分类</span>
		<span class="current">修改幻灯片分类信息</span>
	</div>
	<br>
</div>
<div class="row cl">
  <form action="${BASE}/admin/cms/slide/editCatSave" id="form_save" method="post" class="form form-horizontal">
  <input type="hidden" name="id" value="${obj.id}">
    <div class="col-xs-11">
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>分类名称：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="name" name="name" value="${obj.name}" datatype="*2-200" nullmsg="分类名称不能为空" class="input-text">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>分类标识：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="idname" name="idname" value="${obj.idname}" datatype="*2-200" nullmsg="分类标识不能为空" class="input-text">
        </div>
        <div class="col-xs-3">英文字母,数字或下划线(“_”)</div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3">描述：</label>
        <div class="formControls col-xs-6">
          <textarea id="remarks" name="remarks" cols="" rows="" class="textarea"  placeholder="角色描述...100个字符以内" dragonfly="true" onKeyUp="textarealength(this,100)">${obj.remarks}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <div class="col-xs-10 col-xs-offset-2">
          <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;保存&nbsp;&nbsp;">
        </div>
      </div>
    </div>
    
    <div class="col-xs-1">&nbsp;</div>
  </form>
</div>

<script type="text/javascript">
$(function(){
	$("#form_save").Validform({
		tiptype:2,
		ajaxPost:true,
		postonce:true,
		callback:function(data){
			$.Hidemsg();
			if("200"==data.retCode){
				layer.msg('保存成功！', {icon: 6,offset: '45px'});
				HtmlRender("${BASE}/admin/cms/slide/listCat");
			}else{
				layer.msg('保存失败！', {icon: 5,offset: '45px'});
			}
		}
	});
});
</script>